package com.ewili.x.special.dao.inter;

import com.ewili.x.special.entity.Value;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Date;
import java.util.List;

/**
 * @author wonder
 */
public interface ValueDao extends JpaRepository<Value, Long> {
    Boolean existsByCodeAndDate(String code, Date date);

    List<Value> findByCodeOrderByDateAsc(String code);
}
